
export const toUserUpdateFO = ({    /// Form Object
  wxAppId,
  wxOpenId,
  wxWebAppId,
  wxWebOpenId,
  role,
  company,
  ...restOfAll
}) => ({
  wechatMicoappId: wxAppId,
  maOpenid: wxOpenId,
  wechatOfficialAccount: wxWebAppId,
  oaOpenid: wxWebOpenId,
  roleId: role,
  post: company,
  ...restOfAll,
});

export const toUserCreateFO = ({
  wxAppId,
  wxOpenId,
  wxWebAppId,
  wxWebOpenId,
  role,
  company,
  ...restOfAll
}) => ({
  wechatMicoappId: wxAppId,
  maOpenid: wxOpenId,
  wechatOfficialAccount: wxWebAppId,
  oaOpenid: wxWebOpenId,
  roleId: role,
  post:company,
  ...restOfAll,
});